#include<stdio.h>
#include<string.h>
#include<ctype.h>
#define BUFFER_SIZE 100

void decode(char * str)
{
    for (int i = 0; str[i] != '\0'; i++)
    {
        if(isalpha(str[i]))
        {
            str[i] = isupper(str[i]) ? 'A' + ('Z' - str[i]) : 'a' + ('z' - str[i]);
        }
    }
}

int main(void) 
{
    char ch[BUFFER_SIZE];
    fgets(ch, sizeof(ch), stdin);
    ch[strcspn(ch, "\n")] = 0;
    decode(ch);
    printf("%s", ch);
    return 0;
}